import { request } from "@/utils/request.ts";

//查询
//获取海报
export function api_getPoster() {
    return request({
        url: "/homeBanner",
        method: "POST"
    });
};
//获取每日推荐
export function api_getRecommend() {
    return request({
        url: "/randomWall"
    });
};
//获取专题精选
export function api_getSubject(data = {}) {
    return request({
        url: "/classify",
        data: data
    });
};
//获取专题详情
export function api_getSubjectDetail(data = {}) {
    return request({
        url: "/wallList",
        data: data
    });
};
//获取壁纸详情
export function api_getWallpaperDetail(data = {}) {
    return request({
        url: "/detailWall",
        data: data
    });
};
//获取用户信息
export function api_getUserInfo(data = {}) {
    return request({
        url: "/userInfo",
        data: data
    });
};
//获取用户操作
export function api_getUserOperation(data = {}) {
    return request({
        url: "/userWallList",
        data: data
    });
};
//获取搜索壁纸
export function api_getSearchWallpaper(data = {}) {
    return request({
        url: "/searchWall",
        data
    });
};

//提交
//提交评分
export function api_submitScore(data = {}) {
    return request({
        url: "/setupScore",
        data: data
    });
};
//提交下载日志
export function api_submitDownloadLog(data = {}) {
    return request({
        url: "/downloadWall",
        data: data
    });
};